Alphabetical command descriptions
- alarm
- Send SIGALARM in specified number of seconds
- append
- Append to variable
- apropos
- Search help descriptions for matching pattern
- array
- Manipulate array variables
- auto_commands
- List names of all loadable procedures and commands
- auto_load
- Attempt to load the specified command from a loadable library
- auto_load_file
- Source a file, using auto_path as search parameter
- auto_packages
- Return list of names of all defined packages
- break
- Abort looping command
- bsearch
- Search open file for match
- buildpackageindex
- Build index files for package libraries
- case
- Evaluate one of several scripts, depending on a given value
- catch
- Evaluate script and trap exceptional returns
- catclose
- Close the message catalog specified by cathandle
- catgets
- Retrieve a message from a message catalog
- catopen
- Open the specified message catalog
- cd
- Change working directory
- cequal
- Compare two strings for equality
- cexpand
- Expand backslash characters in string to actual characters
- chgrp
- Set group ID for files in specified list
- chmod
- Set permissions of files in specified list
- chown
- Set owner of files in specified list
- chroot
- Change root directory to specified name
- cindex
- Return character indexed by given expression from string
- clength
- Return length of string in characters
- close
- Close an open file
- cmdtrace
- Print trace statement for specified commands
- commandloop
- Create interactive command loop for Tcl interpreter
- concat
- Join lists together
- continue
- Skip to the next iteration of a loop
- convertclock
- Convert date string to integer value
- convert_lib
- Convert a Ousterhout style index file and source files into a package library
- copyfile
- Copy remainder of file1 to file2
- crange
- Return a range of characters from string
- csubstr
- Return a substring of characters from string
- ctoken
- Parse a token out of a character string
- ctype
- Test whether characters in a string are of a given class
- dirs
- List directories in directory stack
- dup
- Duplicate an open file
- echo
- Write to standard input, followed by newline
- edprocs
- Write named procedures to temporary file, call editor
- eof
- Check for end-of-file condition on open file
- error
- Generate an error
- eval
- Evaluate a Tcl script
- exec
- Invoke subprocess(es)
- execl
- Replace current program with another, passing arguments in list
- exit
- End the application
- expr
- Evaluate an expression
- fcntl
- Set, clear, or return file options
- file
- Manipulate file names and attributes
- flock
- Create lock on all or part of file
- flush
- Flush buffered output for a file
- fmtclock
- Convert time integer to readable clock format
- for
- For loop
- for_array_keys
- Perform foreach for each key in named array
- foreach
- Iterate over all elements in a list
- for_file
- Implement loop over contents of a file
- fork
- Fork the current Tcl process
- format
- Format a string in the style of sprintf
- for_recursive_glob
- Perform foreach loop over recursively matched files
- frename
- Renames old path to new path
- fstat
- Obtain status information on open file
- funlock
- Remove lock created by flock
- getclock
- Return current date and time as integer
- gets
- Read a line from a file
- glob
- Return names of files that match patterns
- global
- Access global variables
- help
- Provide lists of all available help subjects and pages
- helpcd
- Change the current help subject
- helppwd
- Display the current help subject
- history
- Manipulate the history list
- id
- Get, set, convert user, group, process IDs
- if
- Execute scripts conditionally
- incr
- Increment the value of a variable
- info
- Return information about the status of the Tcl interpreter
- infox
- Return info on application or extended Tcl
- intersect
- Return the logical intersection of two lists
- intersect3
- Return the logical intersection of two lists and exceptions
- join
- Create a string by joining together list elements
- keyldel
- Delete key and value from keyed list
- keylget
- Return value associated with key from the keyed list in the variable listvar
- keylkeys
- Return the list of keys in the keyed list in the variable listvar
- keylset
- Set the value of key in the keyed list contained in the variable listvar
- kill
- Signal processes found in list
- lappend
- Append list elements onto a variable
- lassign
- Assign successive elements of a list to specified variables
- lempty
- Determine if specified list is empty
- lgets
- Read next Tcl list from file and discard terminating newline
- lindex
- Retrieve an element from a list
- link
- Create hard or symbolic link between files
- linsert
- Insert elements into a list
- list
- Create a list
- llength
- Count the number of elements in a list
- lmatch
- Return list entries matching specified pattern
- loadlibindex
- Load the package library index of a .tlib library file
- loop
- High performance loop command for fixed increments
- lrange
- Return one or more adjacent elements from a list
- lreplace
- Replace elements in a list with new elements
- lrmdups
- Remove duplicate list entries and re-sort
- lsearch
- See if a list contains a particular element
- lsort
- Sort the elements of a list
- lvarcat
- Concatenate string to end of specified list
- lvarpop
- Delete list element indexed by specified variable
- lvarpush
- Insert string to specified list
- max
- Return argument with highest numeric value
- min
- Return argument with lowest numeric value
- mkdir
- Create specified directories
- nice
- Change or return process priority
- open
- Open a file
- pid
- Retrieve process ID(s)
- pipe
- Create a pipe
- popd
- Pop top directory from directory stack to current directory
- proc
- Create a Tcl procedure
- profile
- Collect performance profile of Tcl script
- profrep
- Generate performance report based on profile results
- pushd
- Push current directory onto directory stack and cd to specified directory
- puts
- Write to a file
- pwd
- Return the current working directory
- random
- Return pseudo-random positive integer
- read
- Read from a file
- readdir
- List contents of specified directory
- read_file
- Read file and return contents as string
- recursive_glob
- Return list of recursively-matched files
- regexp
- Match a regular expression against a string
- regsub
- Perform substitutions based on regular expression pattern matching
- rename
- Rename or delete a command
- replicate
- Replicate string n times
- return
- Return from a procedure
- rmdir
- Remove specified directories
- saveprocs
- Save definitions of procedures to named file
- scan
- Parse string using conversion specifiers in the style of sscanf
- scancontext
- Set scan file context
- scanfile
- Scan open file starting from current position
- scanmatch
- Specify Tcl commands to be evaluated when regexp is matched by a scanfile
- searchpath
- Search all directories in the specified path
- seek
- Change the access position for an open file
- select
- Wait for files to come available or satisfy conditions
- server_info
- Obtain information about a TCP/IP server
- server_open
- Open TCP/IP connection to server on specified port
- set
- Read and write variables
- showproc
- List definitions of named procedures
- signal
- Specify action to take when Tcl is signalled by UNIX
- sleep
- Sleep for specified time in seconds
- source
- Evaluate a file as a Tcl script
- split
- Split a string into a proper Tcl list
- string
- Manipulate strings
- switch
- Evaluate one of several scripts, depending on a given value
- system
- Execute command via system(S) call
- sync
- Flush all pending disk output
- time
- Time the execution of a script
- tell
- Return current access position for an open file
- times
- List process and child execution times
- trace
- Monitor variable accesses
- translit
- Change characters in inrange to outrange
- umask
- Set file creation mode
- union
- Return logical unique union of two lists
- unknown
- Handle attempts to use non-existent commands
- unlink
- Delete (unlink) listed files
- unset
- Delete variables
- uplevel
- Execute a script in a different stack frame
- upvar
- Create link to variable in a different stack frame
- VtAddInput
- Add a callback on file activity (read, write, error)
- VtAddTimeOut
- Add a timeout callback
- VtAddWorkProc
- Add a working procedure
- VtRemoveInput
- Remove add input command for fileID
- VtRemoveTimeOut
- Remove timeout callback
- VtRemoveWorkProc
- Remove working procedure
- wait
- Wait for process created by execl to terminate
- while
- Execute script repeatedly as long as a condition is met
- write_file
- Write strings to specified file